package com.woniuxy.movice.handler;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.woniuxy.movice.entity.Cinema;
import com.woniuxy.movice.service.CinemaService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import net.bytebuddy.asm.Advice.This;
@Api("根据yid展示地图位置")
@RestController
@Data
@RequestMapping("/cinema")
/**
 * 
 * @author 陈俊名

 */
public class CinemaHandler {
	@Resource
	private CinemaService cinemaService;
	@ApiOperation(value="根据id查询分影院的详细信息(参数id：1，2，3)",notes="返回指定影院详细信息")
	@RequestMapping("/map")
	@ResponseBody
	public Cinema findIdByCinema(Integer yid) {
		return cinemaService.showCinemaById(yid);
	}


}

